<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Plugin
 *
 * @author ananda
 */
class View_Plugin_PhpTemplate
{
    public static $counter_status;

    public static function dateFormat($format, $time)
    {
        is_string($time) && ($time = strtotime($time));
        return date($format, $time);
    }

    public static function twins($list, $reset = false)
    {
        static $counter = 0;
        if ($reset) {
            $counter = 0;
            return true;
        }

        $result = $list[$counter % count($list)];
        $counter++;
        return $result;
    }

    public static function counterInit($str, $number)
    {
        //self::$counter_status = array('str' => $str, 'number' => $number, 'counter' => 0);
    }

    public static function counter()
    {
    }

    public static function timestamp()
    {
        return Common::glob('SYS', 'timestamp');
    }

    public static function urlLink()
    {
        
    }

    public static function urlStatic()
    {

    }
}
?>
